﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Zxgl_HistoryCompare : System.Web.UI.Page
{
    public ArrayList LotteryArrayList = null;//过滤后，投注号码串
    public int zhushu = 0, beishu=0;
    List<string> listLottery = new List<string>();
    public string strRedBall = null;//过滤后，投注号码串
    public string strBlueBall = null;//过滤后，投注号码串

    protected void Page_Load(object sender, EventArgs e)
    {
        LotteryArrayList = BLL.ArrayListClass.GetArrayList();
        zhushu = ReadRequest.RequestInt("zhushu");//注数
        beishu = ReadRequest.RequestInt("beishu");//倍数
        strRedBall = BLL.ArrayListClass.GetRedBall();//点选的红球号码串
        strBlueBall = BLL.ArrayListClass.GetBlueBall();//点选的蓝球号码串
        strRedBalls.Text = ConvertCode(strRedBall).Replace(" ", "");
        strBlueBalls.Text = ConvertCode(strBlueBall).Replace(" ", "");

    }
    string ConvertCode(string str)
    {
        string strBall = "";
        string ball = str.Replace(" ", "");
        string[] arr = ball.Split(',');
        for(int i=0;i<arr.Length;i++)
        {
            if(arr[i].Length==1)
            {
                arr[i] = "0" + arr[i];
            }
            strBall += arr[i] + ",";
            
        }
        return strBall.TrimEnd(',');
    }
}